package com.core.image.core;

import java.io.Closeable;

/**
 * describe:把接受的数据调度封装。
 * 把一份或者多份IoArgs组合成一份Packet
 *
 * @author 库琦
 * @date 2020/01/24
 */
public interface ReceiveDispacher extends Closeable {
    void start();
    void stop();
    interface ReceivePacketCalback{
        void onReceivePacketCompleted(ReceivePacket packet);
        ReceivePacket<?,?> onArriveNewPacket(byte type,long length, byte[] headerInfo);
        public void onReceivedHeartbeat();
    }
}
